/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package interfaces;

import java.awt.Dimension;
import java.awt.Graphics;
import javax.swing.ImageIcon;
import javax.swing.JPanel;

/**
 *
 * @author miguesaca
 */
public class Panel_Escritorio extends JPanel{
    public Panel_Escritorio(){
        
    }
    public void paintComponent(Graphics g){
    Dimension tam = getSize();
    ImageIcon ImagenFondo = new ImageIcon(new ImageIcon(getClass().getResource("/imagenes/escritorio1.png")).getImage());
    g.drawImage(ImagenFondo.getImage(), 0, 0, ImagenFondo.getIconWidth(), ImagenFondo.getIconHeight(), null);
    setOpaque(false);
}
}
